import type { IOriginItem } from '@/interface/IOrigin'
import { defineStore } from 'pinia'
import { reactive, ref, type Reactive, type Ref } from 'vue'

export const useOriginStore = defineStore('origin', () => {
    const id: Ref<number> = ref(0)
    const tagsOriginList: Ref<IOriginItem[]> = ref([])

    const tagsOriginInfo: Ref<IOriginItem> = ref({
        id: 0,
        time: '',
        title: '',
        img: '',
        tags: 0,
        from: '',
        address: '',
        farmer: '',
        link: '',
        testPerson: ''
    })
    return { tagsOriginList, id, tagsOriginInfo}
})
